<template>
	<view class="shop">
		<view class="shopList">
			<view @click="gotofaDainPortfolio" class="shopListChilden" v-for="(item,index) in 10">
				<view class="shopList_img">
					<image src="@/static/6.jpg" mode="widthFix" />
				</view>
				<view class="shopList_concer">
					<view>2024NIJISANJI同学会音声 A</view>
					<view>￥26.00</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'shop',
		data() {
			return {
				tagList: ['默认', '主题音乐(常驻)', 'Welcome(常驻)', '期间限定', '情景剧'],
				activeIndex: null // 当前激活的标签索引
			}
		},
		methods: {
			select(index) {
				// 更新 activeIndex 以改变背景颜色和字体颜色
				console.log(index)
				this.activeIndex = this.activeIndex === index ? null : index;
			},
			gotofaDainPortfolio(){
				uni.navigateTo({
					url:"/pages/faDianPortfolio/faDianPortfolio"
				})
			}
			
		}
	}
</script>

<style scoped lang="scss">
	.colorClick {
		background: #ede9f6;
		color: #9b77de;
	}

	.shop {
		width: 90%;
		margin: auto;
	}

	

	.shopList {
		width: 100%;
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;

		.shopListChilden {
			width: 48%;
			// border: 1px red solid;
			display: flex;
			flex-direction: column;
			align-items: center;
			margin-bottom: 20rpx;
			background: #fff;
			border-radius: 20rpx;

			.shopList_img {
				width: 90%;
				display: flex;
				justify-content: center;

				image {
					width: 100%;
				}
			}

			.shopList_concer {
				width: 100%;
				font-size: 24rpx;
				view {
					width: 90%;
					margin: auto;
					font-weight: bold;
					padding: 10rpx 0;
				}
			}
		}
	}
</style>